package com.esun.cheetah.view.setting;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

import com.esun.cheetah.R;

public class GoodRep extends Activity implements OnClickListener{
	private Button btnBack;
	private Button btnGoodR;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.good_reputation);
		initViews();
	}

	private void initViews() {
		btnGoodR=(Button) findViewById(R.id.btnGoodR);
		btnBack=(Button) findViewById(R.id.btnGoodRBack);
		btnBack.setOnClickListener(this);
		btnGoodR.setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.btnGoodRBack:
			finish();
			break;
		case R.id.btnGoodR:
			Intent intent = new Intent(Intent.ACTION_VIEW); 
	    	 intent.setData(Uri.parse( "market://details?id=com.esun.ui" )); 
	    	startActivity(intent);
			break;

		default:
			break;
		}
		
	}
}
